package com.tadpole.music.holder.question;

import android.app.Activity;
import android.view.View;
import android.widget.TextView;

import com.tadpole.music.R;
import com.tadpole.music.bean.question.DrumBean;
import com.tadpole.music.holder.base.BaseViewHolder;

import java.util.List;

/**
 * Created By 孙岩
 * on 2023/5/4
 */
public class DrumLeftViewHold extends BaseViewHolder {
    private View itemView;
    private List<DrumBean> list;
    private TextView tvName;
    private Activity activity;

    public DrumLeftViewHold(Activity activity, View itemView, List<DrumBean> list) {
        super(itemView);
        this.activity = activity;
        this.itemView = itemView;
        this.list = list;
    }

    @Override
    public void init(int position) {
        tvName = itemView.findViewById(R.id.tvName);
        if(list.get(position).getResult()==0){
            tvName.setText("错");
        }else{
            tvName.setText("对");
        }
    }
}
